package com.baixun.gassystem.service;

import com.baixun.gascommon.utils.R;
import com.baixun.gasentity.dto.UserOrderDto;
import com.baixun.gasentity.entity.SysDepartmentUserRoles;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

public interface SysDepartmentUserRolesService extends IService<SysDepartmentUserRoles> {
    /**
     * 分配角色
     */
    R assignRole(SysDepartmentUserRoles departmentUserRoles);

    /**
     * 新增数据权限
     */
    List AddRoleOrder(SysDepartmentUserRoles departmentUserRoles);

    /**
     * 修改数据权限
     */
    int UpdateRoleOrder(SysDepartmentUserRoles departmentUserRoles);

    /**
     * 查询数据权限
     */
    List<UserOrderDto> selectDepartmentAll(Long userId);


    List<Long> selectDeptIdsByUserId(Long userId);


}
